package com.example.buxiaorui.studentsystem;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.EditText;

public class StudentsListActivity extends AppCompatActivity {
    private SharedPreferences sp;
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.students_list);
        sp=getSharedPreferences("login_status",MODE_PRIVATE);

    }

    public void out_login(View view){
        Intent intent=new Intent(this,MainActivity.class);
        startActivity(intent);
        finish();
        SharedPreferences.Editor editor=sp.edit();
        editor.putString("status","false");
        editor.apply();
    }
}
